contar items repeat ruby array